const path = require('path');

const config = {
  "html": [],
  "sass": {
    "src": "./src/sass/**/*.scss",
    "dist": "./dist"
  },
  "js": [
    {
      "src": "./src/js/index.js",
      "dist": "./dist"
    }
  ]
  
}

patchPath(config);

function patchPath(obj){
  for(let key in obj){
    if(obj[key] instanceof Object){
      patchPath(obj[key]);
    } else if(typeof obj[key] == 'string') {
      obj[key] = path.resolve(obj[key]);
    }
  }
}

module.exports = config;